﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F97 RID: 3991
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMapRotateInfo : IMessage<RogueMapRotateInfo>, IMessage, IEquatable<RogueMapRotateInfo>, IDeepCloneable<RogueMapRotateInfo>, IBufferMessage
	{
		// Token: 0x17003291 RID: 12945
		// (get) Token: 0x0600B2C4 RID: 45764 RVA: 0x001E2C8C File Offset: 0x001E0E8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMapRotateInfo> Parser
		{
			get
			{
				return RogueMapRotateInfo._parser;
			}
		}

		// Token: 0x17003292 RID: 12946
		// (get) Token: 0x0600B2C5 RID: 45765 RVA: 0x001E2C93 File Offset: 0x001E0E93
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMapRotateInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003293 RID: 12947
		// (get) Token: 0x0600B2C6 RID: 45766 RVA: 0x001E2CA5 File Offset: 0x001E0EA5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMapRotateInfo.Descriptor;
			}
		}

		// Token: 0x0600B2C7 RID: 45767 RVA: 0x001E2CAC File Offset: 0x001E0EAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMapRotateInfo()
		{
		}

		// Token: 0x0600B2C8 RID: 45768 RVA: 0x001E2CCC File Offset: 0x001E0ECC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMapRotateInfo(RogueMapRotateInfo other) : this()
		{
			this.pEMHGHGMHCL_ = other.pEMHGHGMHCL_;
			this.lGCHOINHLDJ_ = other.lGCHOINHLDJ_;
			this.energyInfo_ = ((other.energyInfo_ != null) ? other.energyInfo_.Clone() : null);
			this.rotaterDataList_ = other.rotaterDataList_.Clone();
			this.fPHPEJPOBGJ_ = other.fPHPEJPOBGJ_;
			this.chargerInfo_ = other.chargerInfo_.Clone();
			this.rogueMap_ = ((other.rogueMap_ != null) ? other.rogueMap_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B2C9 RID: 45769 RVA: 0x001E2D6E File Offset: 0x001E0F6E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMapRotateInfo Clone()
		{
			return new RogueMapRotateInfo(this);
		}

		// Token: 0x17003294 RID: 12948
		// (get) Token: 0x0600B2CA RID: 45770 RVA: 0x001E2D76 File Offset: 0x001E0F76
		// (set) Token: 0x0600B2CB RID: 45771 RVA: 0x001E2D7E File Offset: 0x001E0F7E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool PEMHGHGMHCL
		{
			get
			{
				return this.pEMHGHGMHCL_;
			}
			set
			{
				this.pEMHGHGMHCL_ = value;
			}
		}

		// Token: 0x17003295 RID: 12949
		// (get) Token: 0x0600B2CC RID: 45772 RVA: 0x001E2D87 File Offset: 0x001E0F87
		// (set) Token: 0x0600B2CD RID: 45773 RVA: 0x001E2D8F File Offset: 0x001E0F8F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int LGCHOINHLDJ
		{
			get
			{
				return this.lGCHOINHLDJ_;
			}
			set
			{
				this.lGCHOINHLDJ_ = value;
			}
		}

		// Token: 0x17003296 RID: 12950
		// (get) Token: 0x0600B2CE RID: 45774 RVA: 0x001E2D98 File Offset: 0x001E0F98
		// (set) Token: 0x0600B2CF RID: 45775 RVA: 0x001E2DA0 File Offset: 0x001E0FA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RotaterEnergyInfo EnergyInfo
		{
			get
			{
				return this.energyInfo_;
			}
			set
			{
				this.energyInfo_ = value;
			}
		}

		// Token: 0x17003297 RID: 12951
		// (get) Token: 0x0600B2D0 RID: 45776 RVA: 0x001E2DA9 File Offset: 0x001E0FA9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RotaterData> RotaterDataList
		{
			get
			{
				return this.rotaterDataList_;
			}
		}

		// Token: 0x17003298 RID: 12952
		// (get) Token: 0x0600B2D1 RID: 45777 RVA: 0x001E2DB1 File Offset: 0x001E0FB1
		// (set) Token: 0x0600B2D2 RID: 45778 RVA: 0x001E2DB9 File Offset: 0x001E0FB9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint FPHPEJPOBGJ
		{
			get
			{
				return this.fPHPEJPOBGJ_;
			}
			set
			{
				this.fPHPEJPOBGJ_ = value;
			}
		}

		// Token: 0x17003299 RID: 12953
		// (get) Token: 0x0600B2D3 RID: 45779 RVA: 0x001E2DC2 File Offset: 0x001E0FC2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<ChargerInfo> ChargerInfo
		{
			get
			{
				return this.chargerInfo_;
			}
		}

		// Token: 0x1700329A RID: 12954
		// (get) Token: 0x0600B2D4 RID: 45780 RVA: 0x001E2DCA File Offset: 0x001E0FCA
		// (set) Token: 0x0600B2D5 RID: 45781 RVA: 0x001E2DD2 File Offset: 0x001E0FD2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public NewMapRot RogueMap
		{
			get
			{
				return this.rogueMap_;
			}
			set
			{
				this.rogueMap_ = value;
			}
		}

		// Token: 0x0600B2D6 RID: 45782 RVA: 0x001E2DDB File Offset: 0x001E0FDB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMapRotateInfo);
		}

		// Token: 0x0600B2D7 RID: 45783 RVA: 0x001E2DEC File Offset: 0x001E0FEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMapRotateInfo other)
		{
			return other != null && (other == this || (this.PEMHGHGMHCL == other.PEMHGHGMHCL && this.LGCHOINHLDJ == other.LGCHOINHLDJ && object.Equals(this.EnergyInfo, other.EnergyInfo) && this.rotaterDataList_.Equals(other.rotaterDataList_) && this.FPHPEJPOBGJ == other.FPHPEJPOBGJ && this.chargerInfo_.Equals(other.chargerInfo_) && object.Equals(this.RogueMap, other.RogueMap) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B2D8 RID: 45784 RVA: 0x001E2E9C File Offset: 0x001E109C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.PEMHGHGMHCL)
			{
				num ^= this.PEMHGHGMHCL.GetHashCode();
			}
			if (this.LGCHOINHLDJ != 0)
			{
				num ^= this.LGCHOINHLDJ.GetHashCode();
			}
			if (this.energyInfo_ != null)
			{
				num ^= this.EnergyInfo.GetHashCode();
			}
			num ^= this.rotaterDataList_.GetHashCode();
			if (this.FPHPEJPOBGJ != 0U)
			{
				num ^= this.FPHPEJPOBGJ.GetHashCode();
			}
			num ^= this.chargerInfo_.GetHashCode();
			if (this.rogueMap_ != null)
			{
				num ^= this.RogueMap.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B2D9 RID: 45785 RVA: 0x001E2F55 File Offset: 0x001E1155
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B2DA RID: 45786 RVA: 0x001E2F5D File Offset: 0x001E115D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B2DB RID: 45787 RVA: 0x001E2F68 File Offset: 0x001E1168
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.LGCHOINHLDJ != 0)
			{
				output.WriteRawTag(24);
				output.WriteInt32(this.LGCHOINHLDJ);
			}
			this.rotaterDataList_.WriteTo(ref output, RogueMapRotateInfo._repeated_rotaterDataList_codec);
			if (this.rogueMap_ != null)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.RogueMap);
			}
			this.chargerInfo_.WriteTo(ref output, RogueMapRotateInfo._repeated_chargerInfo_codec);
			if (this.energyInfo_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.EnergyInfo);
			}
			if (this.PEMHGHGMHCL)
			{
				output.WriteRawTag(112);
				output.WriteBool(this.PEMHGHGMHCL);
			}
			if (this.FPHPEJPOBGJ != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.FPHPEJPOBGJ);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B2DC RID: 45788 RVA: 0x001E3038 File Offset: 0x001E1238
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.PEMHGHGMHCL)
			{
				num += 2;
			}
			if (this.LGCHOINHLDJ != 0)
			{
				num += 1 + CodedOutputStream.ComputeInt32Size(this.LGCHOINHLDJ);
			}
			if (this.energyInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.EnergyInfo);
			}
			num += this.rotaterDataList_.CalculateSize(RogueMapRotateInfo._repeated_rotaterDataList_codec);
			if (this.FPHPEJPOBGJ != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.FPHPEJPOBGJ);
			}
			num += this.chargerInfo_.CalculateSize(RogueMapRotateInfo._repeated_chargerInfo_codec);
			if (this.rogueMap_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueMap);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B2DD RID: 45789 RVA: 0x001E30F0 File Offset: 0x001E12F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMapRotateInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.PEMHGHGMHCL)
			{
				this.PEMHGHGMHCL = other.PEMHGHGMHCL;
			}
			if (other.LGCHOINHLDJ != 0)
			{
				this.LGCHOINHLDJ = other.LGCHOINHLDJ;
			}
			if (other.energyInfo_ != null)
			{
				if (this.energyInfo_ == null)
				{
					this.EnergyInfo = new RotaterEnergyInfo();
				}
				this.EnergyInfo.MergeFrom(other.EnergyInfo);
			}
			this.rotaterDataList_.Add(other.rotaterDataList_);
			if (other.FPHPEJPOBGJ != 0U)
			{
				this.FPHPEJPOBGJ = other.FPHPEJPOBGJ;
			}
			this.chargerInfo_.Add(other.chargerInfo_);
			if (other.rogueMap_ != null)
			{
				if (this.rogueMap_ == null)
				{
					this.RogueMap = new NewMapRot();
				}
				this.RogueMap.MergeFrom(other.RogueMap);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B2DE RID: 45790 RVA: 0x001E31CE File Offset: 0x001E13CE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B2DF RID: 45791 RVA: 0x001E31D8 File Offset: 0x001E13D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 42U)
				{
					if (num == 24U)
					{
						this.LGCHOINHLDJ = input.ReadInt32();
						continue;
					}
					if (num == 34U)
					{
						this.rotaterDataList_.AddEntriesFrom(ref input, RogueMapRotateInfo._repeated_rotaterDataList_codec);
						continue;
					}
					if (num == 42U)
					{
						if (this.rogueMap_ == null)
						{
							this.RogueMap = new NewMapRot();
						}
						input.ReadMessage(this.RogueMap);
						continue;
					}
				}
				else if (num <= 82U)
				{
					if (num == 66U)
					{
						this.chargerInfo_.AddEntriesFrom(ref input, RogueMapRotateInfo._repeated_chargerInfo_codec);
						continue;
					}
					if (num == 82U)
					{
						if (this.energyInfo_ == null)
						{
							this.EnergyInfo = new RotaterEnergyInfo();
						}
						input.ReadMessage(this.EnergyInfo);
						continue;
					}
				}
				else
				{
					if (num == 112U)
					{
						this.PEMHGHGMHCL = input.ReadBool();
						continue;
					}
					if (num == 120U)
					{
						this.FPHPEJPOBGJ = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04004845 RID: 18501
		private static readonly MessageParser<RogueMapRotateInfo> _parser = new MessageParser<RogueMapRotateInfo>(() => new RogueMapRotateInfo());

		// Token: 0x04004846 RID: 18502
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004847 RID: 18503
		public const int PEMHGHGMHCLFieldNumber = 14;

		// Token: 0x04004848 RID: 18504
		private bool pEMHGHGMHCL_;

		// Token: 0x04004849 RID: 18505
		public const int LGCHOINHLDJFieldNumber = 3;

		// Token: 0x0400484A RID: 18506
		private int lGCHOINHLDJ_;

		// Token: 0x0400484B RID: 18507
		public const int EnergyInfoFieldNumber = 10;

		// Token: 0x0400484C RID: 18508
		private RotaterEnergyInfo energyInfo_;

		// Token: 0x0400484D RID: 18509
		public const int RotaterDataListFieldNumber = 4;

		// Token: 0x0400484E RID: 18510
		private static readonly FieldCodec<RotaterData> _repeated_rotaterDataList_codec = FieldCodec.ForMessage<RotaterData>(34U, RotaterData.Parser);

		// Token: 0x0400484F RID: 18511
		private readonly RepeatedField<RotaterData> rotaterDataList_ = new RepeatedField<RotaterData>();

		// Token: 0x04004850 RID: 18512
		public const int FPHPEJPOBGJFieldNumber = 15;

		// Token: 0x04004851 RID: 18513
		private uint fPHPEJPOBGJ_;

		// Token: 0x04004852 RID: 18514
		public const int ChargerInfoFieldNumber = 8;

		// Token: 0x04004853 RID: 18515
		private static readonly FieldCodec<ChargerInfo> _repeated_chargerInfo_codec = FieldCodec.ForMessage<ChargerInfo>(66U, EggLink.DanhengServer.Proto.ChargerInfo.Parser);

		// Token: 0x04004854 RID: 18516
		private readonly RepeatedField<ChargerInfo> chargerInfo_ = new RepeatedField<ChargerInfo>();

		// Token: 0x04004855 RID: 18517
		public const int RogueMapFieldNumber = 5;

		// Token: 0x04004856 RID: 18518
		private NewMapRot rogueMap_;
	}
}
